//@author A0121492M
public class SearchboxCommand extends Command {
	
	public ExecutionReply execute()
			throws TaskNotFoundException, PopupClosedException {
		TasksWithFiltersReply r = new TasksWithFiltersReply();
		Task taskfilter = PopUps.executeSearch();
		Logic.checkIfPopupClosed(taskfilter);
		r.listOfTasks = Logic.filterTasks(taskfilter);
		r.taskFilters = taskfilter;
		return r;
	}
}
